Skip to content

Fix validate_tokens for multiple EOS tokens#347

Merged
hudson-ai merged 1 commit into
guidance-ai:mainfrom
fellhorn:fellhorn/fix/earley-parser-multi-eos
May 7, 2026
Merged

Fix validate_tokens for multiple EOS tokens#347
hudson-ai merged 1 commit into
guidance-ai:mainfrom
fellhorn:fellhorn/fix/earley-parser-multi-eos

Conversation

@fellhorn
Copy link
Copy Markdown
Contributor

@fellhorn fellhorn commented May 6, 2026

validate_tokens in parser/src/earley/parser.rs only recognized the primary EOS token, which was overlooked in #305 when adding support for multiple EOS tokens.

This PR aligns the behaviour with e.g. compute_mask that now allows multiple eos tokens.

Signed-off-by: Dennis Keck <26092524+fellhorn@users.noreply.github.com>
@hudson-ai
Copy link
Copy Markdown
Contributor

Awesome, thanks @fellhorn for correcting my oversight!

@hudson-ai hudson-ai merged commit 25c018d into guidance-ai:main May 7, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants